var express = require('express');
var router = express.Router();
var studentData = require('../data/studentData.js');
var majorData = require('../data/majorData.js')
var teacherData = require('../data/teacherData.js');
var booksData = require('../data/booksData');

router.get('/list', function(req, res, next) {
    let data = {
        student: studentData.length,
        major: majorData.length,
        teacher: teacherData.length,
        books: booksData.length,
    }

    res.send({
        data: data
    })
})

module.exports = router
